import {configureStore} from '@reduxjs/toolkit';
import counterReducer from './counter.slice';

const store = configureStore({
    reducer: {
        counter: counterReducer
    },
    devTools: true
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export default store;